﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Overview.aspx.cs" Inherits="OSDK.Bokning.Overview" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="DayPilot" Namespace="DayPilot.Web.Ui" TagPrefix="DayPilot" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="~/CSS/StyleSheet.css" />
    <script type="text/javascript" src="../Includes/Dialogs.js"></script>
    <script type="text/javascript">
        
        var modalEdit = false;
        var modalError = false;

        function launchModalEdit() {
            modalEdit = true;
        }

        function launchModalError() {
            modalError = true;
        }

        function pageLoad() {
            if (modalEdit) {
                $find('ModalEdit').show();
            }
            if (modalError) {
                $find('ModalError').show();
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ToolkitScriptManager ID="asm" runat="server" />
    <asp:Label ID="lableYear" Text="År" runat="server"></asp:Label>
    <asp:DropDownList ID="ddlYear" runat="server" OnSelectedIndexChanged="DdlYearOnSelectedIndexChanged"
        AutoPostBack="true">
    </asp:DropDownList>
    <asp:Label ID="labelWeek" Text="Vecka" runat="server"></asp:Label>
    <asp:DropDownList ID="ddlWeeks" runat="server" OnSelectedIndexChanged="DdlWeeksOnSelectedIndexChanged"
        AutoPostBack="true">
    </asp:DropDownList>
    <p>
    </p>
    <div>
        <daypilot:daypilotscheduler id="DayPilotScheduler1" runat="server" width="100%" eventheight="20"
            headerfontsize="8pt" eventfontsize="8pt" cellwidth="100" cellgroupby="Month"
            eventmovehandling="PostBack" timeformat="Clock24Hours" eventclickhandling="PostBack"
            loadinglabeltext="Laddar..." timerangeselectedhandling="PostBack" eventedithandling="PostBack">
         </daypilot:daypilotscheduler>
    </div>
        <asp:ModalPopupExtender runat="server" TargetControlID="BookingClose" BackgroundCssClass="modalBackground"
        ID="ModalEdit" PopupControlID="EditPanel" OkControlID="BookingClose"></asp:ModalPopupExtender>

    <asp:Panel ID="EditPanel" runat="server" Width="500px" CssClass="modalPopup">
        <div>
            <asp:Label ID="Label1" runat="server" Text="Bokning"></asp:Label>
            <asp:Label ID="Label2" runat="server" Text="Gäst"></asp:Label>
            <asp:DropDownList ID="BookingDropDownListGuests" runat="server">
            </asp:DropDownList>
            <table>
                <tr>
                    <td style="width: 30px">
                        <asp:Label ID="Label6" runat="server" Text="Boknings nummer"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="BookingNumber" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 30px">
                        <asp:Label ID="Label5" runat="server" Text="Rum"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="BookingResource" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 30px">
                        <asp:Label ID="Label3" runat="server" Text="Från"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="BookingStartDate" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label4" runat="server" Text="Till"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="BookingEndDate" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
            </table>
            <asp:ImageButton ID="BookingSave" runat="server" Text="Button" 
                ImageUrl="~/Images/Spara.jpg" onclick="BookingSave_Click" />
            <asp:ImageButton ID="BookingClose" runat="server" ImageUrl="~/Images/Avbryt.jpg" />
            <asp:LinkButton ID="BookingDelete" runat="server" onclick="BookingDelete_Click">Radera</asp:LinkButton>
        </div>
    </asp:Panel>

        <asp:ModalPopupExtender runat="server" TargetControlID="ErrorButtonClose" BackgroundCssClass="modalBackground"
        ID="ModalError" PopupControlID="ErrorPanel" OkControlID="ErrorButtonClose"></asp:ModalPopupExtender>
    <asp:Panel ID="ErrorPanel" runat="server" Width="500px" CssClass="modalPopup" >
    <div>
        <asp:Label ID="Label7" runat="server" Text="Felmeddelande" />
        <br />
    <asp:Label ID="ErrorMessage" runat="server" />
    <br />
    <asp:ImageButton ID="ErrorButtonClose" runat="server" ImageUrl="~/Images/Avbryt.jpg"  /> 
    </div>
    </asp:Panel>
    </form>
</body>
</html>
